export const SEARCH_DATA = [
  {
    key: 'settleOrderMainCode',
    title: '主结算单号',
    type: 'input',
  },
  {
    key: 'yearNo',
    title: '结算类型',
    type: 'select',
    attr: {
      clearable: true,
    },
    options: [{ label: '手术结算', value: '1' }],
  },
  {
    key: 'customerName',
    title: '客户名称',
    type: 'input',
  },
  {
    key: 'settleOrderSubCode',
    title: '结算单号',
    type: 'input',
  },
  {
    key: 'supplierName',
    title: '供应商',
    type: 'input',
  },
  {
    key: 'settlementAt', // 在一起的日期起始时间
    title: '结算日期',
    type: 'time',
    fieldname: ['settlementAtBegin', 'settlementAtEnd'],
    attr: {
      class: 'daterange',
      type: 'daterange',
      style: 'width:260px',
      'start-placeholder': '结算开始日期',
      'end-placeholder': '结算结束日期',
      'default-time': ['00:00:00', '23:59:59'],
    },
  },
  {
    key: 'invoiceNumber',
    title: '发票号码',
    type: 'input',
  },
  {
    key: 'createAt', // 在一起的日期起始时间
    title: '创建日期',
    type: 'time',
    fieldname: ['createAtBegin', 'createAtEnd'],
    attr: {
      class: 'daterange',
      type: 'daterange',
      style: 'width:260px',
      'start-placeholder': '创建开始日期',
      'end-placeholder': '创建结束日期',
      'default-time': ['00:00:00', '23:59:59'],
    },
  },
];
export const TAB_ARR = [
  { lab: '全部', val: 0 },
  { lab: '待开票', val: 1, badge: '' },
  { lab: '待审核', val: 4, badge: '' },
  { lab: '通过', val: 2 },
  { lab: '驳回', val: 5 },
];
export const COLUMNS_TABLE = [
  {
    type: 'index',
    label: '序号',
    width: 56,
  },
  {
    prop: 'settleOrderMainCode',
    label: '主结算单号',
    width: 200,
  },
  {
    prop: 'supplierNum',
    label: '供应商数量',
    width: 100,
  },
  {
    prop: 'typeDesc',
    label: '结算类型',
    width: 100,
  },
  {
    prop: 'settlementDateStr',
    label: '结算日期',
    width: 160,
  },

  {
    prop: 'customerName',
    label: '客户名称',
    minWidth: 150,
  },
  {
    prop: 'pcompanyName',
    label: '配送商',
    minWidth: 150,
  },
  {
    prop: 'admissionNumber',
    label: '住院登记号',
    minWidth: 150,
  },
  {
    prop: 'amountIncludingTaxStr',
    label: '含税金额（元）',
    width: 170,
  },
  // {
  //   prop: 'amountExcludingTaxStr',
  //   label: '不含税金额（元）',
  //   width: 170,
  // },
  // {
  //   prop: 'taxAmount',
  //   label: '税额（元）',
  //   width: 150,
  // },
  {
    prop: 'billingStatusDesc',
    label: '开票状态',
    width: 150,
  },
  // {
  //   prop: 'examineStatusDesc',
  //   label: '审核状态',
  //   width: 150,
  // },
  {
    prop: 'invoiceNumber',
    label: '发票号码',
    width: 150,
  },
  {
    prop: 'createdAtStr',
    label: '创建时间',
    width: 160,
  },
  {
    prop: 'submitExamineTimeStr',
    label: '提交时间',
    width: 160,
  },
  {
    prop: 'action',
    label: '操作',
    width: 150,
    fixed: 'right',
  },
];
export const EXAMINE_TABLE = [
  {
    prop: 'salseCode',
    label: '结算单号',
    width: 220,
  },
  {
    prop: 'supplierName',
    label: '供应商',
    width: 180,
  },
  {
    prop: 'status',
    label: '审核状态',
    width: 100,
    formatter: (row) => {
      let status = '';
      if (row.status === 5) {
        status = '审核驳回';
      } else if (row.status === 2) {
        status = '审核通过';
      } else {
        status = '待审核';
      }
      return status;
    },
  },
  {
    prop: 'remarks',
    label: '审核备注',
    minWidth: 100,
  },
  {
    prop: 'action',
    label: '操作',
    width: 150,
    fixed: 'right',
  },
];
